package com.wxyzz.canteenadmin.order.orderSettlement.controller;

import com.github.pagehelper.PageInfo;
import com.wxyzz.canteenadmin.order.orderSettlement.param.OrderSettlementParam;
import com.wxyzz.canteenadmin.order.orderSettlement.service.OrderSettlementService;
import com.wxyzz.canteenadmin.order.orderSettlement.vo.OrderSettlementVo;
import com.wxyzz.canteencommon.common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order/orderSettlement")
public class OrderSettlementController {

    @Autowired
    private OrderSettlementService orderSettlementService;

    @GetMapping("/getOrderSettlement")
    public R getOrderSettlement(OrderSettlementParam orderSettlementParam) {
        PageInfo<OrderSettlementVo> orderSettlement = orderSettlementService.getOrderSettlement(orderSettlementParam);
        return R.ok(orderSettlement);

    }
}
